package cn.com.git.workflow.config.database;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Profile;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 数据源配置远程拉取
 */
@Component
@ConfigurationProperties(prefix = "jdbc.druid")
@Profile({"pro","pre","test"})
@PropertySource("file:/data/config/db-config.properties")
public class RemoteJdbcConfig implements JdbcProperties {

    private String url;

    private String username;

    private String password;


    @Override
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
